package com.ymttest.database.sharding.db.sharding.mapper;

import com.ymttest.database.sharding.db.sharding.model.OuterPromotionExample;
import com.ymttest.database.sharding.db.sharding.model.OuterPromotionPo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OuterPromotionMapper {
    int countByExample(OuterPromotionExample example);

    int deleteByExample(OuterPromotionExample example);

    int deleteByPrimaryKey(Long orderId);

    int insert(OuterPromotionPo record);

    int insertSelective(OuterPromotionPo record);

    List<OuterPromotionPo> selectByExample(OuterPromotionExample example);

    OuterPromotionPo selectByPrimaryKey(Long orderId);

    int updateByExampleSelective(@Param("record") OuterPromotionPo record, @Param("example") OuterPromotionExample example);

    int updateByExample(@Param("record") OuterPromotionPo record, @Param("example") OuterPromotionExample example);

    int updateByPrimaryKeySelective(OuterPromotionPo record);

    int updateByPrimaryKey(OuterPromotionPo record);
}